Optimal. Leaf size=261 \[ \frac{\left (-272 a^2 b+48 a^3+314 a b^2-105 b^3\right ) \sinh (c+d x) \cosh ^3(c+d x)}{640 d}-\frac{\left (-1744 a^2 b+576 a^3+1678 a b^2-525 b^3\right ) \sinh (c+d x) \cosh (c+d x)}{1280 d}+\frac{3}{256} x (4 a-3 b) \left (8 a^2-14 a b+7 b^2\right )+\frac{\sinh ^3(c+d x) \cosh ^7(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^3}{10 d}+\frac{3 (2 a-3 b) \sinh ^3(c+d x) \cosh ^5(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{80 d}-\frac{b \sinh ^3(c+d x) \cosh ^3(c+d x) \left (a (14 a-9 b)-(22 a-21 b) (a-b) \tanh ^2(c+d x)\right )}{160 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.429778, antiderivative size = 261, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.261, Rules used = {3187, 467, 577, 455, 385, 206} \[ \frac{\left (-272 a^2 b+48 a^3+314 a b^2-105 b^3\right ) \sinh (c+d x) \cosh ^3(c+d x)}{640 d}-\frac{\left (-1744 a^2 b+576 a^3+1678 a b^2-525 b^3\right ) \sinh (c+d x) \cosh (c+d x)}{1280 d}+\frac{3}{256} x (4 a-3 b) \left (8 a^2-14 a b+7 b^2\right )+\frac{\sinh ^3(c+d x) \cosh ^7(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^3}{10 d}+\frac{3 (2 a-3 b) \sinh ^3(c+d x) \cosh ^5(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{80 d}-\frac{b \sinh ^3(c+d x) \cosh ^3(c+d x) \left (a (14 a-9 b)-(22 a-21 b) (a-b) \tanh ^2(c+d x)\right )}{160 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3187
Rule 467
Rule 577
Rule 455
Rule 385
Rule 206
Rubi steps
\begin{align*} \int \sinh ^4(c+d x) \left (a+b \sinh ^2(c+d x)\right )^3 \, dx &=\frac{\operatorname{Subst}\left (\int \frac{x^4 \left (a-(a-b) x^2\right )^3}{\left (1-x^2\right )^6} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac{\cosh ^7(c+d x) \sinh ^3(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^3}{10 d}-\frac{\operatorname{Subst}\left (\int \frac{x^2 \left (3 a-9 (a-b) x^2\right ) \left (a+(-a+b) x^2\right )^2}{\left (1-x^2\right )^5} \, dx,x,\tanh (c+d x)\right )}{10 d}\\ &=\frac{3 (2 a-3 b) \cosh ^5(c+d x) \sinh ^3(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{80 d}+\frac{\cosh ^7(c+d x) \sinh ^3(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^3}{10 d}-\frac{\operatorname{Subst}\left (\int \frac{x^2 \left (3 a (14 a-9 b)-3 (22 a-21 b) (a-b) x^2\right ) \left (a+(-a+b) x^2\right )}{\left (1-x^2\right )^4} \, dx,x,\tanh (c+d x)\right )}{80 d}\\ &=\frac{3 (2 a-3 b) \cosh ^5(c+d x) \sinh ^3(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{80 d}+\frac{\cosh ^7(c+d x) \sinh ^3(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^3}{10 d}-\frac{b \cosh ^3(c+d x) \sinh ^3(c+d x) \left (a (14 a-9 b)-(22 a-21 b) (a-b) \tanh ^2(c+d x)\right )}{160 d}-\frac{\operatorname{Subst}\left (\int \frac{x^2 \left (9 a (14 a-9 b) (2 a-b)-3 (22 a-21 b) (6 a-5 b) (a-b) x^2\right )}{\left (1-x^2\right )^3} \, dx,x,\tanh (c+d x)\right )}{480 d}\\ &=\frac{\left (48 a^3-272 a^2 b+314 a b^2-105 b^3\right ) \cosh ^3(c+d x) \sinh (c+d x)}{640 d}+\frac{3 (2 a-3 b) \cosh ^5(c+d x) \sinh ^3(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{80 d}+\frac{\cosh ^7(c+d x) \sinh ^3(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^3}{10 d}-\frac{b \cosh ^3(c+d x) \sinh ^3(c+d x) \left (a (14 a-9 b)-(22 a-21 b) (a-b) \tanh ^2(c+d x)\right )}{160 d}+\frac{\operatorname{Subst}\left (\int \frac{-3 \left (48 a^3-272 a^2 b+314 a b^2-105 b^3\right )-12 (22 a-21 b) (6 a-5 b) (a-b) x^2}{\left (1-x^2\right )^2} \, dx,x,\tanh (c+d x)\right )}{1920 d}\\ &=-\frac{\left (576 a^3-1744 a^2 b+1678 a b^2-525 b^3\right ) \cosh (c+d x) \sinh (c+d x)}{1280 d}+\frac{\left (48 a^3-272 a^2 b+314 a b^2-105 b^3\right ) \cosh ^3(c+d x) \sinh (c+d x)}{640 d}+\frac{3 (2 a-3 b) \cosh ^5(c+d x) \sinh ^3(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{80 d}+\frac{\cosh ^7(c+d x) \sinh ^3(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^3}{10 d}-\frac{b \cosh ^3(c+d x) \sinh ^3(c+d x) \left (a (14 a-9 b)-(22 a-21 b) (a-b) \tanh ^2(c+d x)\right )}{160 d}+\frac{\left (3 (4 a-3 b) \left (8 a^2-14 a b+7 b^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\tanh (c+d x)\right )}{256 d}\\ &=\frac{3}{256} (4 a-3 b) \left (8 a^2-14 a b+7 b^2\right ) x-\frac{\left (576 a^3-1744 a^2 b+1678 a b^2-525 b^3\right ) \cosh (c+d x) \sinh (c+d x)}{1280 d}+\frac{\left (48 a^3-272 a^2 b+314 a b^2-105 b^3\right ) \cosh ^3(c+d x) \sinh (c+d x)}{640 d}+\frac{3 (2 a-3 b) \cosh ^5(c+d x) \sinh ^3(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^2}{80 d}+\frac{\cosh ^7(c+d x) \sinh ^3(c+d x) \left (a-(a-b) \tanh ^2(c+d x)\right )^3}{10 d}-\frac{b \cosh ^3(c+d x) \sinh ^3(c+d x) \left (a (14 a-9 b)-(22 a-21 b) (a-b) \tanh ^2(c+d x)\right )}{160 d}\\ \end{align*}
Mathematica [A] time = 0.42218, size = 162, normalized size = 0.62 \[ \frac{120 (4 a-3 b) \left (8 a^2-14 a b+7 b^2\right ) (c+d x)+10 b \left (16 a^2-32 a b+15 b^2\right ) \sinh (6 (c+d x))-20 \left (-360 a^2 b+128 a^3+336 a b^2-105 b^3\right ) \sinh (2 (c+d x))+40 \left (-36 a^2 b+8 a^3+42 a b^2-15 b^3\right ) \sinh (4 (c+d x))+5 b^2 (6 a-5 b) \sinh (8 (c+d x))+2 b^3 \sinh (10 (c+d x))}{10240 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.052, size = 222, normalized size = 0.9 \begin{align*}{\frac{1}{d} \left ({b}^{3} \left ( \left ({\frac{ \left ( \sinh \left ( dx+c \right ) \right ) ^{9}}{10}}-{\frac{9\, \left ( \sinh \left ( dx+c \right ) \right ) ^{7}}{80}}+{\frac{21\, \left ( \sinh \left ( dx+c \right ) \right ) ^{5}}{160}}-{\frac{21\, \left ( \sinh \left ( dx+c \right ) \right ) ^{3}}{128}}+{\frac{63\,\sinh \left ( dx+c \right ) }{256}} \right ) \cosh \left ( dx+c \right ) -{\frac{63\,dx}{256}}-{\frac{63\,c}{256}} \right ) +3\,a{b}^{2} \left ( \left ( 1/8\, \left ( \sinh \left ( dx+c \right ) \right ) ^{7}-{\frac{7\, \left ( \sinh \left ( dx+c \right ) \right ) ^{5}}{48}}+{\frac{35\, \left ( \sinh \left ( dx+c \right ) \right ) ^{3}}{192}}-{\frac{35\,\sinh \left ( dx+c \right ) }{128}} \right ) \cosh \left ( dx+c \right ) +{\frac{35\,dx}{128}}+{\frac{35\,c}{128}} \right ) +3\,{a}^{2}b \left ( \left ( 1/6\, \left ( \sinh \left ( dx+c \right ) \right ) ^{5}-{\frac{5\, \left ( \sinh \left ( dx+c \right ) \right ) ^{3}}{24}}+{\frac{5\,\sinh \left ( dx+c \right ) }{16}} \right ) \cosh \left ( dx+c \right ) -{\frac{5\,dx}{16}}-{\frac{5\,c}{16}} \right ) +{a}^{3} \left ( \left ({\frac{ \left ( \sinh \left ( dx+c \right ) \right ) ^{3}}{4}}-{\frac{3\,\sinh \left ( dx+c \right ) }{8}} \right ) \cosh \left ( dx+c \right ) +{\frac{3\,dx}{8}}+{\frac{3\,c}{8}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.0771, size = 547, normalized size = 2.1 \begin{align*} \frac{1}{64} \, a^{3}{\left (24 \, x + \frac{e^{\left (4 \, d x + 4 \, c\right )}}{d} - \frac{8 \, e^{\left (2 \, d x + 2 \, c\right )}}{d} + \frac{8 \, e^{\left (-2 \, d x - 2 \, c\right )}}{d} - \frac{e^{\left (-4 \, d x - 4 \, c\right )}}{d}\right )} - \frac{1}{20480} \, b^{3}{\left (\frac{{\left (25 \, e^{\left (-2 \, d x - 2 \, c\right )} - 150 \, e^{\left (-4 \, d x - 4 \, c\right )} + 600 \, e^{\left (-6 \, d x - 6 \, c\right )} - 2100 \, e^{\left (-8 \, d x - 8 \, c\right )} - 2\right )} e^{\left (10 \, d x + 10 \, c\right )}}{d} + \frac{5040 \,{\left (d x + c\right )}}{d} + \frac{2100 \, e^{\left (-2 \, d x - 2 \, c\right )} - 600 \, e^{\left (-4 \, d x - 4 \, c\right )} + 150 \, e^{\left (-6 \, d x - 6 \, c\right )} - 25 \, e^{\left (-8 \, d x - 8 \, c\right )} + 2 \, e^{\left (-10 \, d x - 10 \, c\right )}}{d}\right )} - \frac{1}{2048} \, a b^{2}{\left (\frac{{\left (32 \, e^{\left (-2 \, d x - 2 \, c\right )} - 168 \, e^{\left (-4 \, d x - 4 \, c\right )} + 672 \, e^{\left (-6 \, d x - 6 \, c\right )} - 3\right )} e^{\left (8 \, d x + 8 \, c\right )}}{d} - \frac{1680 \,{\left (d x + c\right )}}{d} - \frac{672 \, e^{\left (-2 \, d x - 2 \, c\right )} - 168 \, e^{\left (-4 \, d x - 4 \, c\right )} + 32 \, e^{\left (-6 \, d x - 6 \, c\right )} - 3 \, e^{\left (-8 \, d x - 8 \, c\right )}}{d}\right )} - \frac{1}{128} \, a^{2} b{\left (\frac{{\left (9 \, e^{\left (-2 \, d x - 2 \, c\right )} - 45 \, e^{\left (-4 \, d x - 4 \, c\right )} - 1\right )} e^{\left (6 \, d x + 6 \, c\right )}}{d} + \frac{120 \,{\left (d x + c\right )}}{d} + \frac{45 \, e^{\left (-2 \, d x - 2 \, c\right )} - 9 \, e^{\left (-4 \, d x - 4 \, c\right )} + e^{\left (-6 \, d x - 6 \, c\right )}}{d}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.80972, size = 1013, normalized size = 3.88 \begin{align*} \frac{5 \, b^{3} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{9} + 10 \,{\left (6 \, b^{3} \cosh \left (d x + c\right )^{3} +{\left (6 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{7} +{\left (126 \, b^{3} \cosh \left (d x + c\right )^{5} + 70 \,{\left (6 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{3} + 15 \,{\left (16 \, a^{2} b - 32 \, a b^{2} + 15 \, b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{5} + 10 \,{\left (6 \, b^{3} \cosh \left (d x + c\right )^{7} + 7 \,{\left (6 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{5} + 5 \,{\left (16 \, a^{2} b - 32 \, a b^{2} + 15 \, b^{3}\right )} \cosh \left (d x + c\right )^{3} + 4 \,{\left (8 \, a^{3} - 36 \, a^{2} b + 42 \, a b^{2} - 15 \, b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} + 30 \,{\left (32 \, a^{3} - 80 \, a^{2} b + 70 \, a b^{2} - 21 \, b^{3}\right )} d x + 5 \,{\left (b^{3} \cosh \left (d x + c\right )^{9} + 2 \,{\left (6 \, a b^{2} - 5 \, b^{3}\right )} \cosh \left (d x + c\right )^{7} + 3 \,{\left (16 \, a^{2} b - 32 \, a b^{2} + 15 \, b^{3}\right )} \cosh \left (d x + c\right )^{5} + 8 \,{\left (8 \, a^{3} - 36 \, a^{2} b + 42 \, a b^{2} - 15 \, b^{3}\right )} \cosh \left (d x + c\right )^{3} - 2 \,{\left (128 \, a^{3} - 360 \, a^{2} b + 336 \, a b^{2} - 105 \, b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{2560 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 37.0623, size = 777, normalized size = 2.98 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.39929, size = 679, normalized size = 2.6 \begin{align*} \frac{2 \, b^{3} e^{\left (10 \, d x + 10 \, c\right )} + 30 \, a b^{2} e^{\left (8 \, d x + 8 \, c\right )} - 25 \, b^{3} e^{\left (8 \, d x + 8 \, c\right )} + 160 \, a^{2} b e^{\left (6 \, d x + 6 \, c\right )} - 320 \, a b^{2} e^{\left (6 \, d x + 6 \, c\right )} + 150 \, b^{3} e^{\left (6 \, d x + 6 \, c\right )} + 320 \, a^{3} e^{\left (4 \, d x + 4 \, c\right )} - 1440 \, a^{2} b e^{\left (4 \, d x + 4 \, c\right )} + 1680 \, a b^{2} e^{\left (4 \, d x + 4 \, c\right )} - 600 \, b^{3} e^{\left (4 \, d x + 4 \, c\right )} - 2560 \, a^{3} e^{\left (2 \, d x + 2 \, c\right )} + 7200 \, a^{2} b e^{\left (2 \, d x + 2 \, c\right )} - 6720 \, a b^{2} e^{\left (2 \, d x + 2 \, c\right )} + 2100 \, b^{3} e^{\left (2 \, d x + 2 \, c\right )} + 240 \,{\left (32 \, a^{3} - 80 \, a^{2} b + 70 \, a b^{2} - 21 \, b^{3}\right )}{\left (d x + c\right )} -{\left (8768 \, a^{3} e^{\left (10 \, d x + 10 \, c\right )} - 21920 \, a^{2} b e^{\left (10 \, d x + 10 \, c\right )} + 19180 \, a b^{2} e^{\left (10 \, d x + 10 \, c\right )} - 5754 \, b^{3} e^{\left (10 \, d x + 10 \, c\right )} - 2560 \, a^{3} e^{\left (8 \, d x + 8 \, c\right )} + 7200 \, a^{2} b e^{\left (8 \, d x + 8 \, c\right )} - 6720 \, a b^{2} e^{\left (8 \, d x + 8 \, c\right )} + 2100 \, b^{3} e^{\left (8 \, d x + 8 \, c\right )} + 320 \, a^{3} e^{\left (6 \, d x + 6 \, c\right )} - 1440 \, a^{2} b e^{\left (6 \, d x + 6 \, c\right )} + 1680 \, a b^{2} e^{\left (6 \, d x + 6 \, c\right )} - 600 \, b^{3} e^{\left (6 \, d x + 6 \, c\right )} + 160 \, a^{2} b e^{\left (4 \, d x + 4 \, c\right )} - 320 \, a b^{2} e^{\left (4 \, d x + 4 \, c\right )} + 150 \, b^{3} e^{\left (4 \, d x + 4 \, c\right )} + 30 \, a b^{2} e^{\left (2 \, d x + 2 \, c\right )} - 25 \, b^{3} e^{\left (2 \, d x + 2 \, c\right )} + 2 \, b^{3}\right )} e^{\left (-10 \, d x - 10 \, c\right )}}{20480 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]